import { defineStore } from 'pinia'

export const useStore = defineStore('store', {
    state: () => {//定义需要共享的变量
        return {
            author:'程新文' //定义全局变量
        }
    },
    actions:{
        getAuthor(){
            return this.author
        }
    }
})
